const login = false;
const loginCheck = (to,from,next) => {
    if(!login && to.meta.needCheck) next('/login')
    else next();
};

export {loginCheck}